PROJECT(sqlite3secure)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

SET(CMAKE_BUILD_TYPE Release)
#SET(CMAKE_C_FLAGS "-Wall -std=c11")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O0 -g -ggdb")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3")

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/tbin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../tlib)

add_definitions(-DSQLITE_HAS_CODEC)

ADD_LIBRARY(sqlite3secure SHARED sqlite3secure.c)
TARGET_LINK_LIBRARIES(sqlite3secure
	pthread dl
	)
